<template>
  <iframe
    :src="this.txtUrl"
    frameborder="0"
    width="100%"
    :style="{ height: calHeight }"
    scrolling="auto"
  ></iframe>
</template>
<script>
export default {
  data() {
    return {
      txtUrl: "http://10.1.0.215:8086/#/earlywarning",
    };
  },
  computed: {

    //计算属性 , 设置iframe高度为窗口高度少100px
    calHeight() {
      return window.innerHeight - 100 + "px";
    },

  },
};
</script>
